#include<QTextEdit>
#include<QPushButton>
#include<QVBoxLayout>
#include "permissiondialog.h"

PermissionDialog::PermissionDialog(QWidget *parent) :
    QDialog(parent)
{
    textEdit = new QTextEdit(this);
    textEdit->setReadOnly(true);
    textEdit->setText(tr("context"));
    ButtonOK = new QPushButton(tr("OK"),this);
    connect(ButtonOK,SIGNAL(clicked()),this,SLOT(close()));
    layout = new QVBoxLayout(this);
    layout->addWidget(textEdit);
    layout->addWidget(ButtonOK);
    textEdit->setFixedSize(480,400);
    this->setFixedSize(480,480);
}
